
 
 F u n c t i o n :   g e t A c t i v e E l e m e n t s ( d o m C o n t a i n e r E l e m e n t ,   b o o l O n l y R e t u r n F o c u s a b l e ) 
 
 
 
 S h o r t h a n d :   g e t A c t i v e ( d o m C o n t a i n e r E l e m e n t ,   b o o l O n l y R e t u r n F o c u s a b l e ) 
 
 
 
 D e s c r i p t i o n :   R e t u r n s   a n   a r r a y   o f   a l l   k e y b o a r d   f o c u s a b l e   a c t i v e   e l e m e n t s   w i t h i n   a   D O M   n o d e   c o n t a i n e r . 
 
 
 
 R e t u r n s :   A r r a y . 
 
 
 
 N o t e :   I f   d o m C o n t a i n e r E l e m e n t   i s   n o t   s p e c i f i e d ,   w i n d o w . d o c u m e n t   w i l l   b e   u s e d   i n s t e a d .   W h e n   b o o l O n l y R e t u r n F o c u s a b l e   i s   s e t   t o   t r u e ,   o n l y   k e y b o a r d   f o c u s a b l e   e l e m e n t s   w i l l   b e   r e t u r n e d . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   R e t u r n   a n   a r r a y   o f   a l l   k e y b o a r d   f o c u s a b l e   a c t i v e   e l e m e n t s   w i t h i n   a   D O M   n o d e   c o n t a i n e r . 
 
 v a r   m y F o c u s a b l e A c t i v e E l e m e n t s   =   $ A . g e t A c t i v e E l e m e n t s ( d o m E l e m e n t ,   t r u e ) ; 
 
 
 
 / /   R e t u r n   a n   a r r a y   o f   a l l   a c t i v e   e l e m e n t s   w i t h i n   a   D O M   n o d e   c o n t a i n e r . 
 
 v a r   m y A c t i v e E l e m e n t s   =   $ A . g e t A c t i v e E l e m e n t s ( d o m E l e m e n t ) ; 
 
 